<?php

include("../inc/Function_user.php");
upower();
$id = isset($_GET['id'])?intval($_GET['id']):0;
$info = address_info($id);
if(!$id || !$info){
	echo "<script>window.location.href='address.php';</script>";exit;
}
$tpl->assign("id",$id);
$tpl->assign("info",$info);
$tpl->show("address_edit");
?>